package org.jflame.boot_samples.control;

import org.jflame.boot_samples.model.FormatEntity;
import org.jflame.commons.json.JsonHelper;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FormatController {

    @PostMapping("/get")
    public ResponseEntity<FormatEntity> getFmt(FormatEntity entity) {
        System.out.println(JsonHelper.toJson(entity));
        return ResponseEntity.ok(entity);
    }
}
